<?php
class News_model extends CI_Model {

    public function __construct()
    {
        $this->load->database();
    }
	public function get_news($slug = FALSE)
	{
		if ($slug === FALSE)
		{
			$query = $this->db->get('user');
			return $query->result_array();
		}
	
		$query = $this->db->get_where('user', array('sxAcount' => $sxAcount));
		return $query->row_array();
	}
}